<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>chatange</title>

        <link rel="stylesheet" href="../../media/CSS/CSSStyle.css" type="text/CSS" />
    </head>
    <body>
        <div id="sidebar">
            <%@include file="../header.jsp" %>
            <div id="menu"> </div>
        </div>
        <div id="content">
        </div>

        <script type="text/javascript" src="../../script/chat/chat.js"> </script>
        <script type="text/javascript">
            function getCookie (keju) {
                var biskuit_arr = document.cookie.split(";");
                for (var i = 0; i < biskuit_arr.length; ++i) {
                    var x = biskuit_arr[i].substr(0, biskuit_arr[i].indexOf("="));
                    var y = biskuit_arr[i].substr(biskuit_arr[i].indexOf("=") + 1);
                    x = x.replace(/^\s+|\s+$/g, "");
                    if (x == keju) {
                        return (unescape(y));
                    }
                }
            }

            var biskuit = getCookie('act_page');
            if ((biskuit != null) && (biskuit != "")) {
                //setHTTPGetRequest("view/chat/" + biskuit, biskuit);
                setHTTPGetRequest("view/chat/room", 'room');
            } else {
                setHTTPGetRequest("view/chat/room", 'room');
            }
        </script>
    </body>
</html>
